package com.lfd.scheduled.job;

/**
 * @项目名： spring-emq
 * @包名： com.lfd.scheduled.job
 * @文件名: StatisticsSchedulerConfig
 * @创建者: liufudong@szyh-smart.com
 * @创建时间: 2024/11/4 19:46
 * @描述：
 */

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Configuration
@EnableScheduling
public class StatisticsSchedulerConfig {

	private static final long RATE = 30 * 1000;


	@Scheduled(fixedRate = RATE)
	public void refreshMemberScore() {
		log.info(">>>>>>>>>>> xxl-job 处理用户得分数据");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsMemberTargetPoint() {
		log.info(">>>>>>>>>>> xxl-job 统计用户指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsClassesTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计班级指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsGradeTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计年级指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsSchoolTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计学校指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleCheckProjectAnswerComplete(){
		log.info(">>>>>>>>>>> xxl-job 检查问卷完成情况");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsProjectClassesTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计项目班级指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsProjetGradeTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计项目年级指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsProjectSchoolTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计项目学校指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsProjectAreaTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计项目片区指标分");
	}

	@Scheduled(fixedRate = RATE)
	private void handleStatisticsProjectTargetPoint(){
		log.info(">>>>>>>>>>> xxl-job 统计项目指标分");
	}
}